/***********************************************
 * Title:       SpecialityRecord.java
 * Description: TODO ADD DISCRIPTION TO SpecialityRecord.java
 * Author:      LeiKang
 * Create Date: 2009-12-8
 * CopyRight:   CopyRight(c)@2009
 * Version:     1.0
 ***********************************************
 */

package edu.tju.education;

/**
 * @author LeiKang
 *
 */
public class SpecialityRecord {
	
	 private long id;
	 
     private long specialityId;
     
     private int admissionYear;
     
     private int classCount;
     
     public int getClassCount() {
		return classCount;
	}
	public void setClassCount(int classCount) {
		this.classCount = classCount;
	}
	private int studyYear;
     
     private int personNo;
     
     private int state;
     
	/**
	 * @return the state
	 */
	public int getState() {
		return state;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(int state) {
		this.state = state;
	}
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return the admissionYear
	 */
	public int getAdmissionYear() {
		return admissionYear;
	}
	/**
	 * @return the specialityId
	 */
	public long getSpecialityId() {
		return specialityId;
	}
	/**
	 * @param specialityId the specialityId to set
	 */
	public void setSpecialityId(long specialityId) {
		this.specialityId = specialityId;
	}
	/**
	 * @param admissionYear the admissionYear to set
	 */
	public void setAdmissionYear(int admissionYear) {
		this.admissionYear = admissionYear;
	}
	/**
	 * @return the studyYear
	 */
	public int getStudyYear() {
		return studyYear;
	}
	/**
	 * @param studyYear the studyYear to set
	 */
	public void setStudyYear(int studyYear) {
		this.studyYear = studyYear;
	}
	/**
	 * @return the personNo
	 */
	public int getPersonNo() {
		return personNo;
	}
	/**
	 * @param personNo the personNo to set
	 */
	public void setPersonNo(int personNo) {
		this.personNo = personNo;
	}
	public String toString(){
		return "SpecialityRecord [id="+id+",personNo=" + personNo + ", studyYear=" + studyYear
        +", specialityId=" + specialityId
        + ", admissionYear=" + admissionYear + "]";
	}
     

}
